<template>
    <div class='goods'>
        <h3>{{pname}}</h3>
        <p>{{info}}</p>
        <p>商品价格：{{price}}</p>
        <button @click="$emit('kanyidao', 1, id)">砍一刀</button>
    </div>
</template>


<script>
export default {
    name:'GoodsList',
    props:['id','pname', 'price', 'info'],
    data() {
        return {};
    },
    computed: {},
    watch: {},
    methods: {

    },
}
</script>


<style scoped>
.goods {
    padding: 3px;
    margin: 5px;
    border: solid 2px black;
}
</style>